import 'package:flutter/cupertino.dart';
import 'package:hitutor/Util/Global.dart';
import 'package:hitutor/Util/MyColor.dart';

import 'MyImage.dart';

class NextStep extends StatelessWidget {
  Function()? onTap;

  NextStep({this.onTap});

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
        onTap: onTap,
        child: Container(
          width: 36,
          height: 36,
          decoration: Global.getBg(MyColor.Orange, 8),
          padding: EdgeInsets.all(8),
          child: LocalImage("arrow_right_w.png"),
        ));
  }
}

class LastStep extends StatelessWidget {
  Function()? onTap;

  LastStep({this.onTap});

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
        onTap: onTap,
        child: Container(
            width: 36,
            height: 36,
            decoration: Global.getBg(MyColor.Orange, 8),
            padding: EdgeInsets.all(8),
            child: RotatedBox(quarterTurns: 2, child: LocalImage("arrow_right_w.png"))));
  }
}
